<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
    <!--Extjs version 6.2.0 -->
    <link href="css/theme-classic-all.css" rel="stylesheet" />
    <script type="text/javascript" src="locale/locale-zh_CN.js"></script>
    <script type="text/javascript" src="js/ext-all.js"></script>
    <script type="text/javascript">
        //fit 布局
        Ext.application({
            name: 'HelloExt',
            launch: function() {
                Ext.create('Ext.container.Viewport', {
                    layout: 'fit',
                    width: '800px', //没有做用的
                    items: [{
                        title: 'Hello Ext',
                        html: 'Hello! Welcome to Ext JS.'
                    }, {
                        title: ' 妈咪妈咪哄 ',
                        html: '这个子控件是不会显示的，呜哈哈哈！'
                    }]
                });
            }
        });
    </script>
</head>

<body>

</body>

</html>